#pragma once

#include "IMultInterface.h"

class RealISub2 : public ISub2
{
public:
    RealISub2(IBase *p);
    ~RealISub2();
    HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppv);
    ULONG STDMETHODCALLTYPE AddRef();
    ULONG STDMETHODCALLTYPE Release();
    HRESULT STDMETHODCALLTYPE Increment();
    HRESULT STDMETHODCALLTYPE Decrement();
    HRESULT STDMETHODCALLTYPE GetValue(LONG *v);

private:
    IBase *m_pBase;
    LONG m_value;
};
